<?

//******************************************************************************
//Augmentation de la population.
//******************************************************************************
require("../../protect/connect_jeu.php");

$query ="UPDATE sdville SET ville_population=ville_population+
(  ((ville_population*((ville_tn-ville_tm)/100))/6.25)-( (ville_population*((ville_tn-ville_tm)/100))/6.25)*((ville_morale/100)*-2)   )
WHERE ville_m_revolte=0 AND  ville_auto_repro='0' AND ville_proprio!=0" ;
$resultat=mysql_query($query);
//IF (!$resultat){   //Si l'augmentation ne c pas bien passee.
  // $datepost=date("YmdHis",mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y")));
//}
//******************************************************************************
mysql_close();

?>
